﻿{% load static %}
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="{% static 'novel/img/222.jpg' %}">

    <title>羽毛小说|全网真·永久免费</title>

    <!-- Bootstrap 核心CSS文件 -->
    <link href="{% static 'novel/css/bootstrap.min.css' %}" rel="stylesheet">
    <style type="text/css">
	    body{
	          background: url("{% static 'novel/img/110.jpg' %}")  no-repeat center;
	          background-size: cover;
	          width: 100%;
	    }
        .gs{
        	text-align: center;
            font-size: 32px;
            color: #337ab7;
            display: inline-block;
        	margin-top: 20px;
        }
        #inputName{
        	width:250px;
        	margin: 20px 0;
        }
        .btn-success{
            margin-top: -2px;
        }
        a{
            display: inline-block;
            text-align: center;
        }
        a:hover{
            text-decoration: none;
            color: red;
        }
        img{
            width: 160px;
            height: 220px;
            margin: 0 5px;
        }
        h3{
            display: inline-block;
        }
    </style>
<body>
	<div class="container">
    	<div class="row">
        	<div class="col-md-2">
        	</div>
        	<div class="col-md-8">
                <center>
            		<span class="form-signin-heading gs"><b>羽毛小说搜索</b></span><br>
                    <span class="form-signin-heading gs" style="color: red;">
                    全网唯一无广告无弹窗的小说网站<br>
                    </span>
            		<form class="form-signin" action="{% url 'novel:search' %}" method="post">
            			{% csrf_token %}
            			<label for="inputName" class="sr-only">搜书：</label>
                        <input type="text" name="key_word" id="inputName" class="form-control" placeholder="书名或作者" required autofocus style="display:inline-block;">
                        <button class="btn btn-success face_btn" type="submit">搜索</button>
                    </form>                
                    <table>
                        {%for i in info.book_info%}
                            <tr>
                                <h3><a href="search/{{i.1}}"><img src="{{i.0}}" alt="{{i.2}}"><br>《{{i.2}}》<br>
                                点击阅读</a><br></h3>
                            </tr>
                        {%endfor%}
                    </table>
                </center>
        	</div>
        	<div class="col-md-2">
        	</div>
        </div>
    </div>
    <!-- jquery部分： -->
    <script type="text/javascript" src="{% static 'novel/js/jquery-3.3.1.min.js' %}"></script>
    <!-- Bootstrap部分： -->
    <script type="text/javascript" src="{% static 'novel/js/bootstrap.min.js' %}"></script>    
 </body>
</html>